// 创建模块
var app = angular.module('starter', [ 'ui.router', 'starter.home.controllers', 'starter.home.services']);

// 配置路由
app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
  $stateProvider
    .state('home', {
    	url: "/home",
      	templateUrl: "templates/home.html",
        controller: 'HomeController'
  	})  	
	.state('other', {
    	url: "/other",
      	template: "this is other"
  	});

  	$urlRouterProvider.otherwise('/home');
}]);
